<!DOCTYPE html>
<html>
<head>
  <title>Eth</title>
  <%= csrf_meta_tags %>

  <%= stylesheet_link_tag    'application', media: 'all', 'data-turbolinks-track': 'reload' %>
  <%= javascript_include_tag 'application', 'data-turbolinks-track': 'reload' %>
</head>
<script type="text/javascript">
    if (typeof web3 !== 'undefined') {
      <%if Etheruby::Configuration.client_conn_type == 'http'%>
      web3 = new Web3(new Web3.providers.HttpProvider("<%=Etheruby::Configuration.client_conn_address%>"));
      <%else%>
      web3 = new Web3(web3.currentProvider);
      <%end%>
    }
</script>
<body>
<%= render :partial => 'nav' %>
<%= yield %>
</body>
</html>
